﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Biljart.Model.Dao;

namespace Biljart.Model.Service
{
    class RoundService: IRoundService
    {
        private readonly IRoundDao _roundDao;

        public RoundService()
        {
            _roundDao = new RoundDao();
        }

        public Round GetRound(long id)
        {
            return _roundDao.GetRound(id);
        }

        public IEnumerable<Round> GetRounds()
        {
            return _roundDao.GetRounds();
        }

        public IEnumerable<Round> GetRounds(HashSet<long> ids)
        {
            return _roundDao.GetRounds(ids);
        }

        public bool AddRound(Round round)
        {
            return _roundDao.AddRound(round);
        }
    }
}
